package com.study.enums;

public enum StateEnum {
    ADD_SUC(100,"添加成功"),
    ADD_FAIL(101,"添加失败"),
    DELETE_SUC(200,"删除成功"),
    DELETE_FAIL(201,"删除失败"),
    UPDATE_SUC(300,"更新成功"),
    UPDATE_FAIL(301,"更新失败");

    private Integer code;
    private String msg;

    StateEnum() {
    }

    StateEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
